<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue event</title>
    <link rel="stylesheet" type="text/css" href="./lib/bootstrap/css/bootstrap.css">
    <script type="text/javascript" src="./lib/vue/vue.js"></script>
    <script type="text/javascript" src="./lib/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/bootstrap/js/bootstrap.js"></script>
</head>

<body>
    <div class="container" id="box">
        <h4>$event</h4>
        <button type="button" class="btn btn-success" @click="doClick($event)" value="">点击我</button>
    </div>

</body>


<script>
    var v = new Vue({
        el: '#box',
        data: {
            
        },
        methods: {
            doClick: function(event) {
                alert('hello vue event.' + event.clientX);
            }
        }

    });
</script>

</html>